<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>首页</title>
  <!-- 正确引用静态资源 -->
  <link th:href="@{/css/style.css}" rel="stylesheet">
  <script th:src="@{/js/main.js}"></script>
</head>
<body>
<h1>欢迎页面</h1>
<img th:src="@{/images/logo.png}" alt="Logo">
<a th:href="@{/test}">测试链接</a>
<br/>
<a th:href="@{/ai/chat}">AI</a>
</body>
</html>